 <div id="wrapper-content">
<div id="viewactu" align="center"> 
 <div align="center" id="titre_viewactu" >DETAIL COMMANDE</div>
<table id="formactu" cellpadding="10px" cellspacing="0">
<tr> <td>Nom du client</td> <td><?php echo $order['clientnom'];?></td> </tr>
<tr> <td>Date </td> <td><?php echo convertdate($order['dat']);?></td> </tr> 
<tr> <td>Montant </td> <td><?php echo $order['montant'];?></td> </tr> 
<tr> <td>Methode paiement</td> <td><?php echo $order['methodnom'];?></td> </tr> 
<tr> <td>Livraison</td><td> 
<?php if($order['livre']==""){?> <a href="<?php echo site_url('order/update_date_livraison_detail').'/'.$order['id'];?>" >Livraison</a>
<?php } else { echo convertdate($order['livre']);}?> 
 </td> </tr>
 <tr> <td>Adresse de livraison</td> <td><?php echo $order['adr'];?></td> </tr>  
</table>
</div>
<table class="titrepage" width="100%">
        <tr>              
     <td >La liste des produits command&eacute;s de ce client</td>
 </tr>
 </table>
  <?php if(!empty($detail_order)){?>   
 <table width="100%" class="list">
        <thead>
        <tr>
             <th>Img</th>
             <th>Nom</th>
            <th>Prix unitaire</th>
            <th>Quantit&eacute;</th>
       </tr>    
</thead>
    <?php foreach ($detail_order as $aRow):?>
        <tr>
             <td><?php echo $aRow['img'];?></td>
            <td><?php echo $aRow['nom'];?></td>
            <td><?php echo $aRow['prix'];?></td>
            <td><?php echo $aRow['quantite'];?> </td>
           

    </td>
         </tr>
    <?php endforeach;?> 
     </table>
 <?php }else {echo "Ce client n'a aucun commande";}?>    
</div>